<%@ page contentType="text/html; charset=utf-8" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.io.*"%>
<%@ page import="requestInterFace.Handle.*"%>
<%@ page import="xml.response.*"%>
<%@ page import="xml.root"%>
<%@ page import="util.print.printLogCat"%>
<%@ page import="org.sql.table.*"%>
<%@ page import="xml.var"%>
<%@ page import="java.util.Vector"%>
<%@ page import="java.util.Enumeration"%>
<%@ page import="requestInterFace.UserInfoInterFace.*"%>
<%@ page import="jqgrid.jqgrid"%>
<%@ include file="../../util/paramPrint.jsp" %>
<%@ page trimDirectiveWhitespaces="true" %> 
<%
String Order_ID = request.getParameter("Order_ID");
String userType=(String)session.getAttribute("User_Type");
String userID=(String)session.getAttribute("User_ID");
root root=new root();
if(userType==null||userType.equals("")){
root.setStatus("false");
root.setMsg("没有登录");
PrintWriter pw = response.getWriter();
pw.println(root.getXmlString());
pw.flush();
return ;
}
		deliverpathHandle handle=new deliverpathHandle();
		if(!handle.isdeliver(Order_ID,userID)){
			root.setStatus("false");
			root.setMsg("你没有删除权限");
			PrintWriter pw = response.getWriter();
			pw.println(root.getXmlString());
			pw.flush();
			return ;
		}
		
		deliverpathinfo1_1 user=new deliverpathinfo1_1();
		if(Order_ID!=null&&(!Order_ID.equals(""))){
		 user.addequwhile("Order_ID","=",Order_ID);
		}
		int row=user.delete();
		root.setRecords(""+row);//设置当前查询到的记录数
		if(row>0){
        root.setStatus("true");
		root.setMsg("删除成功");
		}else{
		root.setStatus("false");
		root.setMsg("失败");
		}
		//printLogCat.printlnWriter(root.getXmlString());
		String rep=root.getXmlString();
%>
<%=rep%>

